home *** CD-ROM | disk | FTP | other *** search
- unit S32K;
-
- interface
-
- var Page: LongInt;
-
- procedure Mode32K;
- procedure SetPalette(var P; Num: Word);
- procedure SetPage(P: LongInt);
-
- implementation
-
- procedure Mode32K; assembler;
- asm
- MOV AX,$4f02
- MOV BX,$110
- INT $10
- end;
-
- procedure SetPage(P: LongInt); { Set the memory page }
- begin
- P := (P div 65536) and $ffff;
- asm
- MOV AX, $4F05
- MOV BH, 0
- MOV BL, 1
- MOV DX, Word(P)
- INT $10
- end;
- Page := P * 65536;
- end;
-
- end.
-